<?php 
require 'header.php';
include("connect.php");

?>
<div class="container" style="margin-top: 30px;">
			<div class="jumbotron">
				<h1 class="display-4">嗨！</h1>
				<p class="lead">在这里您可以和其他人一起分享书籍，并共同使用。</p>
				<hr class="my-4">
				<p>知识是珍贵宝石的结晶,文化是宝石放出来的光泽。--泰戈尔</p>
			</div>
			<div class="row">
				<div class="card" style="width: 18rem;">
					<img src="img/mian-2.jpg" class="card-img-top" >
					<div class="card-body">
						<h5 class="card-title">寻书者</h5>
						<p class="card-text">想看电子版书籍但找不到资源？来这里，寻找你想要的</p>
						<a href="books.php" class="btn btn-success">点击进入</a>
					</div>
				</div>
				<div class="col">
				</div>
				<div class="card" style="width: 18rem;">
					<img src="img/main.jpg" class="card-img-top" >
					<div class="card-body">
						<h5 class="card-title">求书者</h5>
						<p class="card-text">网站里面找不到？快来留言让大家帮你找找。</p>
                        <a href="assist.php" class="btn btn-warning">点击进入</a>
					</div>
				</div>
				<div class="col">
				</div>
				<div class="card" style="width: 18rem;">
					<img src="img/mian-1.jpg" class="card-img-top" >
					<div class="card-body">
						<h5 class="card-title">献书者</h5>
                        <p class="card-text">独乐了不如众乐乐，快来分享你的书籍丫！</p>
                        <?php
                        if($_SESSION['username']=="")
{
    ?>
	                    <a data-toggle="modal"  data-toggle="modal" data-target="#exampleModal" class="btn btn-danger">还未登录</a>
    <?php
}else{
    ?>
                        <a href="submitBook.php"  class="btn btn-primary">点击进入</a>
    <?php
}
?>        			
					</div>
				</div>
			</div>
		</div>
        <div class="container-fluid" style="background-color: #262822; margin-top: 30px;">
			<div class="container text-light text-center">
				<p>网站管理员入口<a href="admin/login.php">点击进入</a></p>
			</div>
		</div>
        </body>